#!/bin/sh

tomcat_id=`ps -ef | grep /root/dingcan/java/yongbao-backend.jar | grep -v "grep" | awk '{print $2}'`
echo $tomcat_id
for id in $tomcat_id
do
    kill -9 $id
    echo "killed $id"
done

nohup java -jar /root/dingcan/java/yongbao-backend.jar > /dev/null 2>&1 &
tailf /root/dingcan/java/log/yongbao-backend/info.log
